/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2018 All Rights Reserved.
 */
package com.antcloud.demo.antscheduler.nine1nine;

/**
 *
 * @author qian.lqlq
 * @version $Id: BillItem.java, v 0.1 2018年09月06日 19:17 qian.lqlq Exp $
 */
public class BillItem {

    private int              id;

    private String           userId;

    private BillItemTypeEnum type;

    private long             amount;

    public BillItem() {
    }

    public BillItem(String userId, BillItemTypeEnum type) {
        this.userId = userId;
        this.type = type;
    }

    public void addAmount(long amount) {
        this.amount += amount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public BillItemTypeEnum getType() {
        return type;
    }

    public void setType(BillItemTypeEnum type) {
        this.type = type;
    }

    public long getAmount() {
        return amount;
    }

    public void setAmount(long amount) {
        this.amount = amount;
    }
}